const date = {
  state: {
    year: new Date().getFullYear(),
    month: (new Date().getMonth() + 1)
  },
  mutations: {
    SET_DATE: (state, date) => {
      state.year = date.year
      state.month = date.month
    },
  },
  getters: {
    month: state => state.month,
    year: state => state.year
  }
}

export default date
